const vwLayout = resolve => require(['@/views/vwlayout/vwLayout'], resolve);

const init = resolve => require(['@/views/init/index'], resolve);
const home = resolve => require(['@/views/home/index'], resolve);
const mine = resolve => require(['@/views/mine/index'], resolve);
const login = resolve => require(['@/views/login/index'], resolve);

export default
[
  {
    path: '/',
    name: 'init',
    component: init,
    meta: {
      white: true
    },
    redirect:'/home',
    children:[
      {
        path: 'home',
        name: 'home',
        component: home,
        meta: {
          white: true
        }
      },
      {
        path: 'mine',
        name: 'mine',
        component: mine,
        meta: {
          white: true
        }
      }
    ]
  },
  {
    path: '/login',
    name: 'login',
    component: login,
    meta: {
      white: true
    }
  },
  {
    path: '/vw',
    name: 'vwLayout',
    component: vwLayout,
    meta: {
      white: true
    }
  },
  {
    path: '*',
    redirect: '/'
  }
]
